import request from '@/utils/request'

// 定义公共的api 
const BASE_URL = '/admin/system/sysOperLog';

export default {
    //批量删除
    deleteOperLogIds(ids) {
        return request({
            url: `${BASE_URL}/deleteIds`,
            method: 'delete',
            data: ids,
        })
    },
    // 查询用户和分页
    getPageList(page, limit, searchObj) {
        return request({
            url: `${BASE_URL}/${page}/${limit}`,
            method: 'get',
            params: searchObj
        })
    },
    //删除
    deleteById(id) {
        return request({
            url: `${BASE_URL}/deleteById/${id}`,
            method: 'delete',
        })
    },
}